package com.shop.vuedemo.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * projectName: vueDemo
 * create on 2021/11/14 10:12
 *
 * @author yanbl
 * @Description : 配置分页插件
 */
@Configuration
@MapperScan({"com.shop.vuedemo.mapper"})
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor getPaginationInterceptor() {
        return new PaginationInterceptor();
    }
}
